#include<iostream>
using namespace std;
#include<string>
class OJ
{
public:
	 static string Fun(string& num1, string& num2)
	{
		int m = num1.size();
		int n = num2.size();
		int arr[20] = { 0 };
		if ((m == 1 && num1[0]== '0') || (n==1 && num2[0]=='0'))
			return "0";
		for (int i = m-1; i >= 0; i--)
		{
			int tmp1 = num1[i] - '0';
			for (int j = n-1; j >=0; j--)
			{
				int tmp2 = num2[j] - '0';
				arr[i + j + 1] += (tmp1 * tmp2);
			}
		}
		for (int i = m+n-1; i > 0; i--)
		{
			int next = arr[i] / 10;
			arr[i] = arr[i] % 10;
			arr[i - 1] += next;
		}

		string s3;
		for (int i = 0; i < m+n; i++)
		{
			s3.insert(s3.end(), arr[i] + '0');
		}
		if (s3[0] == '0')
			s3.erase(0, 1);
		return s3;
	}
};
int main()
{
	string s1;
	string s2;
	cin >> s1 >> s2;
	string s4 = OJ::Fun(s1, s2);
	cout << s4 << endl;
	return 0;
}